www.gusucode.com > VC++ 新手写的简单客房管理系统源码程序 > VC++ 新手写的简单客房管理系统源码程序/code/tot/FangSet.cpp
// FangSet.cpp : implementation file // Download by http://www.NewXing.com #include "stdafx.h" #include "tot.h" #include "FangSet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CFangSet IMPLEMENT_DYNAMIC(CFangSet, CRecordset) CFangSet::CFangSet(CDatabase* pdb) : CRecordset(pdb) { //{{AFX_FIELD_INIT(CFangSet) m_roomID = 0; m_daycost = 0; m_state = _T(""); m_max = 0; m_nFields = 4; //}}AFX_FIELD_INIT m_nDefaultType = snapshot; } CString CFangSet::GetDefaultConnect() { return _T("ODBC;DSN=Room"); } CString CFangSet::GetDefaultSQL() { return _T("[fangjian]"); } void CFangSet::DoFieldExchange(CFieldExchange* pFX) { //{{AFX_FIELD_MAP(CFangSet) pFX->SetFieldType(CFieldExchange::outputColumn); RFX_Long(pFX, _T("[roomID]"), m_roomID); RFX_Long(pFX, _T("[daycost]"), m_daycost); RFX_Text(pFX, _T("[state]"), m_state); RFX_Long(pFX, _T("[max]"), m_max); //}}AFX_FIELD_MAP } ///////////////////////////////////////////////////////////////////////////// // CFangSet diagnostics #ifdef _DEBUG void CFangSet::AssertValid() const { CRecordset::AssertValid(); } void CFangSet::Dump(CDumpContext& dc) const { CRecordset::Dump(dc); } #endif //_DEBUG